package com.threadPool;

import java.util.concurrent.Callable;

public class DemoFutureB  implements Callable {

    @Override
    public String call() throws Exception {

        Thread.sleep(50000);
        DemoB demoB=new DemoB();
        demoB.query();
        return "DemoB";
    }

}
